[[title="行业线管理"]]
<script type="text/javascript">
    function window.onload() {
        wmsCommon.setEditDivStyle("tabDiv", 0.99);
        var div = document.getElementById("tabDiv");
       div.style.height = parseFloat(div.style.height) - 10; //设置高度
    }

</script>
<table class="DisplayArea" cellpadding="0" cellspacing="0" align="center" style="width: 100%;
    height: 100%">
    <tr>
        <td class="headmiddle" style="height: 26px">
            #if($request.QueryString.get_Item("opt")=="1") 
            <span id="LableTitle">新增行业线</span>
            <script> $(function () {
                    $($("input")[0]).attr("readonly", false);
                })</script>
            #else <span id="LableTitle2">修改行业线</span> #end
        </td>
    </tr>
    <tr >
        <td style=" vertical-align: text-top; padding:10px;" class="centermiddle">
            <!--edit content start-->
            <table class="singleEdit" cellpadding="0" cellspacing="0" id="contenttb" >
                <tr>
                    <td class="tblEditPrompt">
                        $industryLine.Columns.get_Item("code").DisplayName
                    </td>
                    <td class='tblEditText'>
                        $industryLine.Rows.get_Item(0).get_Item("code").Render("FocusedTextBox,checkExists=notin;")
                    
                    </td>
                </tr>

                <tr>
                    <td class="tblEditPrompt">
                        $industryLine.Columns.get_Item("name").DisplayName
                    </td>
                    <td class='tblEditText'>
                        $industryLine.Rows.get_Item(0).get_Item("name").Render("FocusedTextBox,checkExists=notin;")
                    
                    </td>
                </tr>
                <tr style="display: none;">
                    <td class="tblEditPrompt">
                        $industryLine.Columns.get_Item("creatorName").DisplayName
                    </td>
                    <td class='tblEditText'>
                       $industryLine.Rows.get_Item(0).get_Item("creatorName").Render("defaultValue=$session.get_Item('userNo');")
                    </td>
                    
                    <td class="tblEditPrompt">
                        $industryLine.Columns.get_Item("createTime").DisplayName
                    </td>
                    <td class='tblEditText'>
                        $industryLine.Rows.get_Item(0).get_Item("createTime").Render("defaultValue=$dataContext.GetDate();")
                    </td>
                </tr>
            </table>
             <table >
                <tr>
                    <td  valign="top">
                        <!--tab  标签列表  -->
                        <div id="first" style="margin-left: 10px">
                            <div class="on" lang="tab1" title="行业线负责人" align="center">行业线负责人</div>
                        </div>
                        <div id="tabDiv">
                         
                            <div id="tab1" style="border: 1px solid #95B0CB; margin-top: 0; margin-left: 10px;  width: 100% ; ">
                                <table>
                                    <tr>
                                        <td colspan="5" style="text-align: center;">
                                     $render.RenderButton("text=新增; displayType=button ; actionType=new;clientMethod=wmsCommon.newRow('industryLinePrincipal');")
                                            $render.RenderButton(" text=删除; displayType=button ; actionType=delete; clientMethod=DelRow('industryLinePrincipal');")
                                        
                                        </td>
                                    </tr>
                                </table>
                                <table class="tblList" id="industryLinePrincipal" style="border-collapse: collapse;
                                    color: #95B0CB" border="0" rules="all" cellspacing="0">
                                    <tr>
                                        <th style="width: 50px;">
                                            <span style="cursor: hand" onclick="wmsCommon.checkedAll('industryLinePrincipal')">选择</span>
                                        </th>
                                        <th style="width:50%;">
                                            $industryLine.Childs.get_Item(0).Columns.get_Item("userNo").DisplayName
                                        </th>
                                        <th  style="width:50%;">
                                            $industryLine.Childs.get_Item(0).Columns.get_Item("remark").DisplayName
                                        </th>
                                    </tr>
                                     #foreach($row in $industryLine.Childs.get_Item(0).Rows)[[section:industryLinePrincipal{]]
                                    <tr onmouseout="wmsCommon.onMouseOut(this)" onmouseover="wmsCommon.onMouseOver(this)">
                                        <td align="center" style="width: 50px">
                                            <input type="checkbox" style="border: 0; cursor: hand" />
                                        </td>
                                        <td style="padding-left:3px;padding-right:3px; width:50%">
                                            $row.get_Item("userNo").Render()
                                        </td>
                                        <td style="padding-left:3px;padding-right:3px;width:50%">
                                            $row.get_Item("remark").Render()
                                        </td>
                                    </tr>
                                    [[}]] #end
                                </table>
                            </div>
                            
                        </div>
                    </td>
                </tr>
            </table>
            <!-- edit content end-->
        </td>
    </tr>
    <tr style="height: 20px; ">
        <td colspan="4" valign="middle" style="text-align: center; height: 20px;">
            <div style="height: 20px; background-color: rgb(233, 231, 215);">
                $render.RenderButton(" text=保存; displayType=button ; actionType=save; clientMethod=submitValidatePage();serverMethod=wmsCommon.pubSaveAndRefPage('industryLine','');")
                $render.RenderButton(" text=关闭; displayType=button ; actionType=close; clientMethod=wmsCommon.closeWin();")
            </div>
        </td>
    </tr>
</table>
